package com.ymatou.iapi.trading.sellerquery2.parameter.sp;

import java.util.List;
import java.util.Map;

import com.ymatou.query.trading.api.parameter.args.GetSellerOrderListCountArguments;
import com.ymatou.query.trading.api.parameter.sp.I_Sp_GetSellerOrderListCount;

/**
 * sp_trd_GetSellerOrderListCount_Simple
 * 
 * @author songyefeng
 *
 */
public class Sp_GetSellerOrderListCount_Simple implements
		I_Sp_GetSellerOrderListCount {
	@SuppressWarnings("rawtypes")
	public List<Map> execute(GetSellerOrderListCountArguments args) {
		I_Sp_GetSellerOrderListCount sp = null;
		if (args.getTimeType() == 0) {
			sp = new Sp_GetSellerOrderListCount_Simple_NoTime();
		} else if (args.getTimeType() == 1) {
			sp = new Sp_GetSellerOrderListCount_Simple_dAddTime();
		} else if (args.getTimeType() == 2) {
			sp = new Sp_GetSellerOrderListCount_Simple_dPaidTime();
		} else if (args.getTimeType() == 3) {
			sp = new Sp_GetSellerOrderListCount_Simple_dDispathTime();
		} else if (args.getTimeType() == 4) {
			sp = new Sp_GetSellerOrderListCount_Simple_dApplyPostPayTime();
		}
		if (sp == null) {
			return null;
		}
		return sp.execute(args);
	}
}
